import request from '@/utils/request'

// 获取水厂下拉列表
export function getFactoryList() {
  return request({
    url: '/operation/web/operationBasicInfoConfig/factoryList',
    method: 'get'
  })
}

// 获取水厂基本信息配置详细信息
export function getWaterPlantBasicInfo(waterPlantId) {
  return request({
    url: `/operation/web/operationBasicInfoConfig/${waterPlantId}`,
    method: 'get'
  })
}

// 保存水厂基本信息配置
export function saveWaterPlantBasicInfo(data) {
  return request({
    url: '/operation/web/operationBasicInfoConfig',
    method: 'put',
    data
  })
}